<?php
require_once('common.php');
Util::cleanRequest();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cirrus Insight - Authorize Cirrus Insight</title>
<style type="text/css">
	body {
		margin: 0px;
		font-family:'Lucida Grande',verdana;
		background-color: #FFF;
	}
	
	body > div {
		margin: 20px;
		height: 375px;
	}
	
	#content {
		background-color: #ecf3ff;
		border-radius: 6px;
		margin: 10px 0px;
		padding: 10px 15px;
		height: 100%;
	}
	
	form {
		text-align: center;
		margin-bottom: 15px;
	}
	
	h1 {
		font-size: 22px;
		margin: 10px 0px;
	}
	
	p, p a {
		font-size: 14px;
		margin: 0 0 20px 0;
		line-height: 1.4em;
	}
	
	p.small, p.small a {
		font-size: 11px;
	}
	
	input.btn {
		height: 50px;
		width: 200px;
	}

</style>
<script src="https://www.google-analytics.com/ga.js" type="text/javascript">
</script>
<script type="text/javascript">
  var pageTracker = _gat._getTracker("UA-24872184-1");
  pageTracker._trackPageview('/ci/sfdcLogin.php');
</script>
</head>

<body>


<div>
	
	<a href="https://www.cirrusinsight.com">
		<img alt="Cirrus Insight" src="http://www.cirrusinsight.com/wp-content/uploads/2011/12/logo_full_45h.png" width="289" height="45" />
	</a>
	
	<div id="content">

		<h1>Thanks for installing Cirrus Insight!</h1>
		<p>Please sign in with your salesforce.com username and password.</p>
		
		<form method="get" action="/GoogleContactSync/sfdcLogin.php">
			<input type="hidden" name="continue" value="1" />
			<input type="hidden" name="state" value="<?= urlencode($_REQUEST["state"]) ?>" />
			<input type="image" src="img/secure-signin.png" class="btn" />
		</form>
		
		<p>By clicking sign in, you agree to the Cirrus Insight <a href="http://www.cirrusinsight.com/terms" target="_blank">Terms of Service</a>.</p>					
		<p>We never see or store your password. All data is secured with SSL. For more information, please see our <a href="http://www.cirrusinsight.com/privacy" target="_blank">Privacy Policy</a>. If you have any questions, please <a href="http://www.cirrusinsight.com/contact" target="_blank">contact us</a>.</p>
		
		<p class="small">If you use Single Sign-On or the My Domains feature in Salesforce, use our <a href="/sfdcLoginServer.php">custom login</a>.</p>
	
	</div>
	
</div>


</body>
</html>